# coding:utf-8
# 作者：理想国真恵玩
import pandas as pd
import matplotlib.pyplot as plt

# 导入星巴克店的数据
starbucks = pd.read_csv("./data/starbucks.csv")
print(starbucks.columns)

# 按照国家分组，求出每个国家的星巴克零售店数量
# count = starbucks.groupby(['Country']).count()

# 设置多个索引，set_index()
count = starbucks.groupby(['Country', 'State/Province']).count()
# print(count)

count['Brand'].plot(kind='bar', figsize=(20, 8))
plt.show()
